$(document).ready( function() {
    $(".btntest").click( function () {

        console.log("ccc");
        $.ajax({
            url: "../userinfo",
            data: {
                action: "nomarlCard",
            },
            type: "POST",
            success: function (json) {
                // alert(msg);
                console.log(json);
                if(json!=false) toCard(json,"#card-normal-1");
            },
            dataType: "json"
        });
    });
});

toCard = function(usercard , card) {
    console.log(usercard["userNum"]);
    // console.log(card + " " +".userNum");
    toChange = function(key) {
        $(card +" ." +key).text(usercard[key]);
    }
    for(key in usercard) {
        toChange(key);
    }

}